package exe.ch3;

/**
 * @author oldliu
 * @since 1.0
 */
public class Memberc {
    //会员属性有会员号，姓名，手机号，积分
    private String cardNum;//会员号
    private String name;//姓名
    private String phoneNum;//手机号
    private int integral;//积分

    public Memberc(String cardNum, String name, String phoneNum, int integral) {
        this.cardNum = cardNum;
        this.name = name;
        this.phoneNum = phoneNum;
        this.integral = integral;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String toString() {
        return String.format("%s %s %s %d", cardNum, name, phoneNum, integral);
    }
}

